package com.dz.control;

import com.dz.bean.dingdan;
import com.dz.dao.dingdan1Mapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Controller
public class dingDanControl {

    @Resource
    private dingdan1Mapper dingdan1Mapper;

    @GetMapping(value = "/getDingdan")
    @ResponseBody
    public  List<dingdan> getDingDan(){
        List<dingdan> list = dingdan1Mapper.selectDingDanAll();
        return list;
    }
}
